package cn.itcast.service;

import cn.itcast.domain.*;

import java.util.List;

public interface UserService {

    Customer Userlogin(String name, String pwt);

    Customer fetchUserinfoByName(String login_name);

    Boolean register(User user);

    List<Yuancailiao> findmatserial();

    Boolean deletemat(Integer id);


    Yuancailiao findmaterById(Integer id);

    Boolean modifymater(Yuancailiao yl);

    Integer findcount();

    List<Dishes> findFood(String crux);

    Boolean addcart(Integer id);

    List<Cart> findshop();

    List<Dishes> findFoodByAll();

    Boolean addorder(Integer cid, Integer oid, String date, Integer paymentstatus, String address, Integer price);

    List<Order> findorder();

    List<Cook> findCook(String crux);

    Customer findCustomer(String name);

    Order findOrderByCid(Integer cid);

    Boolean addAp(Integer orderid, Integer customerid, Integer cookid, String date);

    List<Appointment> findappoint();

    Cook cookLogin(String name, String pwt);

    Cook fetchCookinfoByName(String login_name);

    Boolean deletedish(Integer id);

    List<Yuancailiao> findyuancailiao();

}


